import redis
ip = '127.0.0.1'
password = ''
r = redis.Redis(host=ip, password=password, port=6379, db=0, decode_responses=True)
top10_press1=r.zrevrange(name="top10_press",start=0,end=9)
print(top10_press1)
lista=[]
for i in range(0,10):
    top10_press=r.zscore(name="top10_press",value=top10_press1[i])
    print(top10_press)
    lista.append(top10_press)
print(lista)
top10_book1=r.zrevrange(name="top10_book",start=0,end=9)
print(top10_book1)
for i in range(0,10):
    top10_book=r.zscore(name="top10_book",value=top10_book1[i])
    print(top10_book)